#ifndef TIMEITEM_H
#define TIMEITEM_H

#include <QWidget>
#include <QLineEdit>
#include <QPushButton>

class TimeItem : public QWidget
{
    Q_OBJECT
public:
    explicit TimeItem(QWidget *parent = nullptr);

private:
    void onInit();
signals:

private slots:
    void onGetCurrent();
    void onTransTimestamp();
    void onTransTime();

private:
    // 当前时间
    QLineEdit *m_curTime = nullptr;
    QLineEdit *m_curTimestamp = nullptr;
    QPushButton *m_curBtn = nullptr;

    // 转时间戳
    QLineEdit *m_time = nullptr;
    QLineEdit *m_timestamp = nullptr;
    QPushButton *m_btn = nullptr;

    // 转时间
    QLineEdit *m_time2 = nullptr;
    QLineEdit *m_timestamp2 = nullptr;
    QPushButton *m_btn2 = nullptr;
};

#endif // TIMEITEM_H
